package com.bootdo.wx.service;

import com.bootdo.wx.domain.GoodsProductDO;

import java.util.List;
import java.util.Map;

/**
 * 商品产品
 * 
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
public interface GoodsProductService {
	
	GoodsProductDO get(String id);
	
	List<GoodsProductDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsProductDO goodsProduct);
	
	int update(GoodsProductDO goodsProduct);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	String getSkuPrefix();

	int removeByGoodsId(String id);

	int removeByGoodsIdJ(String id);

	Map<String,Object> getByGoodsIdAndSpec(Map<String, Object> params);

    List<GoodsProductDO> getByGoodsId(String id);
}
